<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        <form action="" enctype="multipart/form-data"  method="post" id="test_form" omsubmit='return checkForm()'>
            <input type="file" name="file" >
            <input type="file" name="file" >
            <input type="file" name="headImg" >
            <input type="file" name="headImg" multiple="multiple">
            <input type="submit" value="提交">
        </form>
    </div>
    <script>
        function checkForm(){
            var form = document.getElementById('test_form');
            //可在此修改input
            //进行下一步
            return true;
        }
    </script>
</body>
</html>
